<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>测试</title>
	<script type="text/javascript">
		var arr1 = [234,3,3,3,3,3];
		var arr2 = [34,12,47,23,3,3];

		function getLenght (x,y) {

			var newArr = x.concat(y);

			var num=0;

			for(var i in newArr){
				if(newArr[i]%2==1){
					num++;
				}
			}

			return num;
		}

		res = getLenght(arr1,arr2);

		document.write(res);


		arr = [999,888];

		temp = arr[0];

		arr[0] = arr[1];

		arr[1] = temp;

		document.write(arr);

	</script>
</head>
<body>
	
</body>
</html>